package com.zhang.gmallpublishertest.service.impl;

import com.zhang.gmallpublishertest.mapper.ProductStatsMapper;
import com.zhang.gmallpublishertest.service.SugarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @title:
 * @author: zhang
 * @date: 2022/1/10 20:46
 */
@Service
public class SugarServiceImpl implements SugarService {

    @Autowired
    private ProductStatsMapper productStatsMapper;

    @Override
    public BigDecimal getGmv(int date) {
        return productStatsMapper.selectGmv(date);
    }
}
